package com.jservice.framework.spring;

import com.jfinal.plugin.activerecord.IDataSourceProvider;

import javax.sql.DataSource;

/**
 * @author cwledit
 *
 */
public class SpringDataSourcePlugin implements IDataSourceProvider{

	/* (non-Javadoc)
	 * @see com.jfinal.plugin.activerecord.IDataSourceProvider#getDataSource()
	 */
	@Override
	public DataSource getDataSource() {
		return (DataSource) SpringContextUtil.getBean("dataSourceProxy");
	}

}
